﻿<!--
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

Copyright (c) Microsoft Corporation. All rights reserved
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" href="/css/default.css" />
    <script src="../Scripts/jquery-2.1.0.js"></script>
    <script src="../Scripts/jquery-2.1.0.min.js"></script>
    <script src="../js/fb.js"></script>
    <script src="/js/in-app-purchase.js"></script>
</head>
<body>
    <div data-win-control="SdkSample.ScenarioInput">
        <h3 id="inAppPurchaseHead">In-app purchase scenario</h3>
        <p>
            This scenario shows two different in-app products; one the customer has bought and the other, they haven't. In this example, the customer has already bought product 1, but not product 2.
        </p>
        <p>
            <button id="testProduct1" title="See if product 1 can be used.">
                Test product 1
            </button>
            Test product 1 to see if it can be used by the customer. Display the result in the output area.
        </p>
        <p>
            <button id="product1PurchaseButton" title="Display the in-app purchase dialog box for product 1.">
                Buy product 1
            </button>
            Demonstrates what happens when a customer tries to buy a product they already own. Query the Store API to get the in-app offer information and show it here.
        </p>
        <div id="product1SellMessage" class="outputInInput">
            <!-- The displayed text is provided by initializePersistentInAppScenario() -->
        </div>
        <p>
            <button id="testProduct2" title="See if product 2 can be used.">
                Test product 2
            </button>
            Test product 2 to see if it can be used by the customer. Display the result in the output area.
        </p>
        <p>
            <button id="product2PurchaseButton" title="Display the in-app purchase dialog box for product 2.">
                Buy product 2
            </button>
            Display the purchase dialog box to buy product 2. Query the Store API to get the in-app offer information and show it here.
        </p>
        <div id="product2SellMessage" class="outputInInput">
            <!-- The displayed text is provided by initializePersistentInAppScenario() -->
        </div>
        <p>
            <button id="share2PurchaseButton" title="Login to your account and share to buy">
                Share and Get Product 2
            </button>
            Login to your facebook account and share to get the product.
        </p>
        
        <p>
            Click <strong>Test product 2</strong> after you get this product.
        </p>
    </div>
    <div data-win-control="SdkSample.ScenarioOutput">
    </div>
</body>
</html>
